from bs4 import BeautifulSoup
import requests
from requests.api import head
from user_agent_get import userAgentGet


url="https://www.qiushibaike.com/text/page/2/"
headers={'user-agent':userAgentGet('chrome').userAgentGetValue()}

respon=requests.get(url,headers=headers)

print(respon.text)

with open("code1/test1.html",'w',encoding='utf-8') as f:
    f.write(respon.text)
